package com.nanjia.boot.product.category.model.form;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;

/**
 * 商品分类表单对象
 *
 * @author 周洋
 * @since 2025-07-04 15:24
 */
@Getter
@Setter
@Schema(description = "商品分类表单对象")
public class ProductCategoryForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "分类ID")
    private Integer id;

    @Schema(description = "分类名称")
    @NotBlank(message = "分类名称不能为空")
    @Size(max=50, message="分类名称长度不能超过50个字符")
    private String categoryName;

    @Schema(description = "父分类ID")
    @NotNull(message = "父分类ID不能为空")
    private Integer parentId;

    @Schema(description = "分类状态")
    @NotNull(message = "分类状态不能为空")
    private Integer categoryStatus;


}
